package br.unidocs.modelo.entidade;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 * The persistent class for the usuarios database table.
 * 
 */
@Entity
@DiscriminatorValue(value = "A")
public class Admin extends Usuario implements Serializable {
	private static final long serialVersionUID = 1L;

	// bi-directional many-to-one association to Noticia
	@OneToMany(mappedBy = "admin")
	private Set<Noticia> noticias;

	public Set<Noticia> getNoticias() {
		return noticias;
	}

	public void setNoticias(Set<Noticia> noticias) {
		this.noticias = noticias;
	}

}